package com.kuang.dao.user;

import com.kuang.pojo.User;

import java.sql.Connection;
import java.util.List;

public interface UserDao {
//    用户登录
     User login(Connection connection, String userCode);

//    用户修改密码
     int updatePassword(Connection connection, int id, String newPassword);

//     获得用户列表
     List<User> getUserList(Connection connection, String userName, String roleCode, int pageSize, int currentPageNo);

//     int getTotalCount(Connection connection,String userName, String roleCode);
     List<User> getUserTotal(Connection connection, String userName, String roleCode);
}
